Repository navigation
feat(fleet-queue): second_pass packet kind + review payload block (#2310) - #9402
Conversation
) Implements design #2025 sections 5.1-5.2 and 7.2 (D2 ruled 2026-11-11) in the repo-task/v1 packet validator: - KINDS gains second_pass. - New dedupe family second-pass: repo-health:v1:second-pass:<repo>:<issue>:pass-<n>, cross-checked against payload.issue.number and payload.review.pass, and the only family valid for kind second_pass — one live packet per (artifact, pass) by construction, so a second commissioning collides on the key instead of double-commissioning. - The review payload block (verdict, verdict_note_url, artifact, pass, pass_cap, gap_list, goal_context_refs, producer, route_floor) is required for second_pass and shape-checked whenever any packet carries one (the Stage B interim small_fix representation): gap_list and verdict_note_url are required, pass/pass_cap must be positive, and pass > pass_cap is rejected at enqueue — the termination cap is arithmetic, not restraint. - Result outcomes: no result-outcome allowlist exists in the validator or the broker (checked validate.rs, turso_queue.rs, queue_broker.rs), so superseded_by_second_pass / second_pass_complete need no recognition change; the acceptance item was conditional on one existing. Mirrored the same change into the two laptop-local copies the packet evidence named (fleet-brokers-src validate.rs — compiles; ~/tools/repo-task-v1.schema.json kind enum + review block), which deploy outside this repo. Tests: cargo test -p fleet-queue --features queue-broker — 298 passed, 0 failed, including 6 new second_pass tests (well-formed packet validates; missing gap_list, missing verdict_note_url, pass > pass_cap, and missing review block all rejected; dedupe family matches issue+pass and rejects the family for other kinds).
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Shepherd verification (lane code-d, task 15297): independently re-verified before merging.
— lane code-d worker, 2026-11-13 |
#2314) (#10654) Implements design #2025 §5.4 (D2 ruled 2026-11-11; schema landed via #2310/PR #9402). Template carries the seven ordered fields plus pass-cap facts; worked example renders the Stage A shadow second-pass verdict on PR #4175 (#2313 exit report). Co-authored-by: repo-worker-tmp-code-b <fleet@developing.today>
What
Implements #2310 (design #2025 §§5.1–5.2, 7.2; D2 ruled 2026-11-11): the
second_passpacket kind and thereviewpayload block in the repo-task/v1 validator (pkgs/fleet/crates/fleet-queue/src/validate.rs).Changes
KINDSgainssecond_pass.second-pass:repo-health:v1:second-pass:<repo>:<issue>:pass-<n>(DedupeMatchgains apassfield), cross-checked againstpayload.issue.numberandpayload.review.pass; it is the only family valid for kindsecond_pass. One live packet per (artifact, pass) by construction — a second commissioning collides on the key.review_errors: the §5.2 review block is required forsecond_passand shape-checked whenever a packet carries one (the §5.3 Stage B interim attaches it tosmall_fix).gap_listandverdict_note_urlrequired;pass/pass_cappositive;pass > pass_caprejected at enqueue — the termination cap is arithmetic, not reviewer restraint.Acceptance mapping
second_passpacket; rejects missinggap_list, missingverdict_note_url,pass > pass_cap— unit testssecond_pass_packet_validates,second_pass_rejects_missing_gap_list,second_pass_rejects_missing_verdict_note_url,second_pass_rejects_pass_above_cap,second_pass_requires_the_review_block.second_pass_dedupe_family_matches_issue_and_passpins the parse + cross-checks + family/kind binding both ways.cargo test -p fleet-queue --features queue-broker→ 298 passed, 0 failed (the pre-existing corpus controls for every family are in that suite).superseded_by_second_pass/second_pass_complete: checkedvalidate.rs,turso_queue.rs,queue_broker.rs— no result-outcome allowlist exists to recognise them in (the acceptance item was conditional on one existing); completion results are free-form today.Mirrors outside this repo
The packet evidence named two laptop-local copies; both were updated in place with the same semantics:
~/fleet-brokers-src/crates/queue-broker/src/validate.rs(compiles:cargo check -p queue-broker) and~/tools/repo-task-v1.schema.json(kind enum +reviewblock shape; still valid JSON). Deploying the broker build that carries this validator is the usual broker release step, unchanged by this PR.Queue task 15297.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.